<template>
	<view class="">
		<!-- 状态栏 -->
		<view class="status_bar">
		</view>
		<view class="home-index">
			<Tabs></Tabs>
			<view class="info">
				<view class="header">
					<uni-search-bar :radius="100" placeholder="请输入关键字" @confirm="search"></uni-search-bar>
				</view>
				<scroll-view class="scroll-index" scroll-y="true">
					<view class="list">
						<view class="item" v-for="(item,index) in 4">
							<view class="comp">
								阿里巴巴
							</view>
							<view class="name">
								<text >王军</text>
								<text >13300000000</text>
							</view>
							<view class="address">
								湖北省武汉市
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</view>
	</view>
	
</template>

<script>
	import Tabs from '../../components/tabs.vue'
	export default {
		data() {
			return {
				
			}
		},
		components:{
			Tabs
		},
		methods: {
			
		}
	}
</script>
<style>
	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
		background-color: #FFFFFF;
	}
</style>
<style lang="less" scoped>
.uni-searchbar{
	width: 80%;
}
.home-index{
	display: flex;
	height: calc(100vh - var(--status-bar-height));
	input{
		font-size: 14px;
	}
	.info{
		display: flex;
		flex-direction: column;
		flex:1;
		// .title{
		// 	display: flex;
		// 	align-items: center;
		// 	font-size: 24px;
		// 	color: #235FA7;
		// 	height: 60px;
		// }
		.header{
			display: flex;
			justify-content: center;
			height: 30px;
			padding: 5px 0;
		}
	}
	.scroll-index{
		height: calc(100vh - 40px - var(--status-bar-height));
		.list{
			display: flex;
			flex-direction: column;
			.item{
				display: flex;
				min-height: 50px;
				border-bottom: 1px solid #f2f2f2;
				padding: 0 20px;
				.comp{
					display: flex;
					align-items: center;
					width: 30%;
					color: #0F75BF;
					font-weight: bold;
				}
				.name{
					display: flex;
					align-items: center;
					width: 30%;
				}
				.address{
					display: flex;
					align-items: center;
					width: 40%;
				}
			}
		}
	}
	
}
</style>
